/**
 * Created by Administrator on 2018/1/19.
 */
define(function(require, exports, module) {
    var $=require('zepto'),
        api=require('api'),
        cn=require('conment');
    module.exports = {
        getStorage:{
            zx_future:JSON.parse(cn.getItem('getSelf')),
            zx_astock:JSON.parse(cn.getItem('zx_astock')),
            future_list:JSON.parse(cn.getItem('contract')),
        },
        setContract:function () {
            var _this=this;
            cn.Ajax(api.url_futures.contract,{type:1},function(d){
                if(d.code==1){
                    cn.setItem('contract',JSON.stringify(d.data.list))
                }
            },'post');
        }
    }
})